package com.ywyt.elasticsearch.service;

import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.xcontent.XContentBuilder;

import java.io.IOException;

public interface IndexService {

    //1.创建索引
    public void createIndex(String index, String type, Settings.Builder settings, XContentBuilder mappingBuilder)throws IOException;

    //2.检查索引是否存在
    public boolean existsIndex(String index) throws IOException;

    //3.删除索引
    void deleteIndex(String index) throws IOException;
}
